package net.confinanz.client.frontend.plugins;

import java.awt.Component;

import javax.swing.JScrollBar;
import javax.swing.JScrollPane;

public class DefaultScrollPane extends JScrollPane {


	private static final long serialVersionUID = -2535770717957689125L;

	public DefaultScrollPane(Component content) {
		initialize();
		setViewportView(content);
	}
	
	
	private void initialize() {
		JScrollBar scrollBarHorizontal = new JScrollBar();
		scrollBarHorizontal.setUnitIncrement(20);
		scrollBarHorizontal.setOrientation(JScrollBar.HORIZONTAL);
		JScrollBar scrollBarVertical = new JScrollBar();
		scrollBarVertical.setUnitIncrement(20);
		
		this.setHorizontalScrollBar(scrollBarHorizontal);
		this.setVerticalScrollBar(scrollBarVertical);
	}
}
